<!DOCTYPE html>
<html>
    <head>
        <!-- 页面meta -->
        <meta charset="utf-8">
        <meta content="IE=edge" http-equiv="X-UA-Compatible">
        <title>砺锋智慧健康系统</title>
        <meta content="砺锋智慧健康系统" name="description">
        <meta content="砺锋智慧健康系统" name="keywords">
        <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
              name="viewport">
        <!-- 引入样式 -->
        <link href="../static/plugins/elementui/index.css" rel="stylesheet">
        <link href="../static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
        <link href="../static/css/style.css" rel="stylesheet">
        <style>
            .el-main {
                position: absolute;
                top: 70px;
                bottom: 0px;
                left: 200px;
                right: 10px;
                padding: 0;
            }
        </style>
    </head>
    <body class="hold-transition skin-purple sidebar-mini">
        <div id="app">
            <el-container>
                <el-header class="main-header" style="height:70px;">
                    <nav :class='' class="navbar navbar-static-top">
                        <!-- Logo -->
                        <a class="logo" href="#" style="text-align:center">
                            <span class="logo-lg"><img src="../static/img/logo.png"></span>
                        </a>
                        <div class="right-menu">
                            <span class="help"><i aria-hidden="true"
                                                  class="fa fa-exclamation-circle"></i>帮助</span>
                            <el-dropdown class="avatar-container right-menu-item" trigger="click">
                                <div class="avatar-wrapper">
                                    <img class="user-avatar" src="../static/img/user2-160x160.jpg">
                                    Jay.Liu
                                </div>
                                <el-dropdown-menu slot="dropdown">
                                    <el-dropdown-item divided>
                                        <span style="display:block;">修改密码</span>
                                    </el-dropdown-item>
                                    <el-dropdown-item divided>
                                        <span style="display:block;">退出</span>
                                    </el-dropdown-item>
                                </el-dropdown-menu>
                            </el-dropdown>
                        </div>
                    </nav>
                </el-header>
                <el-container>
                    <el-aside width="200px">
                        <el-menu>
                            <el-submenu :index="menu.path" v-for="menu in menuList">
                                <template slot="title">
                                    <i :class="menu.icon" class="fa"></i>
                                    {{menu.title}}
                                </template>
                                <template v-for="child in menu.children">
                                    <el-menu-item :index="child.path">
                                        <a :href="child.linkUrl" target="right">{{child.title}}</a>
                                    </el-menu-item>
                                </template>
                            </el-submenu>
                        </el-menu>
                    </el-aside>
                    <el-container>
                        <iframe class="el-main" frameborder="0" height="580px" name="right"
                                src="checkitem" width="100%"></iframe>
                    </el-container>
                </el-container>
            </el-container>
        </div>
    </body>
    <!-- 引入组件库 -->
    <script src="../static/js/vue.js"></script>
    <script src="../static/plugins/elementui/index.js"></script>
    <script src="../static/js/jquery.min.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                menuList: [
                    {
                        "path": "1",
                        "title": "工作台",
                        "icon": "fa-dashboard",
                        "children": []
                    },
                    {
                        "path": "2",
                        "title": "会员管理",
                        "icon": "fa-user-md",
                        "children": [
                            {
                                "path": "/2-1",
                                "title": "会员档案",
                                "linkUrl": "member.html",
                                "children": []
                            },
                            {
                                "path": "/2-2",
                                "title": "体检上传",
                                "children": []
                            },
                            {
                                "path": "/2-3",
                                "title": "会员统计",
                                "linkUrl": "all-item-list.html",
                                "children": []
                            },
                        ]
                    },
                    {
                        "path": "3",
                        "title": "预约管理",
                        "icon": "fa-tty",
                        "children": [
                            {
                                "path": "/3-1",
                                "title": "预约列表",
                                "linkUrl": "ordersettinglist",
                                "children": []
                            },
                            {
                                "path": "/3-2",
                                "title": "预约设置",
                                "linkUrl": "ordersetting",
                                "children": []
                            },
                            {
                                "path": "/3-3",
                                "title": "套餐管理",
                                "linkUrl": "setmeal",
                                "children": []
                            },
                            {
                                "path": "/3-4",
                                "title": "检查组管理",
                                "linkUrl": "checkgroup",
                                "children": []
                            },
                            {
                                "path": "/3-5",
                                "title": "检查项管理",
                                "linkUrl": "checkitem",
                                "children": []
                            },
                        ]
                    },
                    {
                        "path": "4",
                        "title": "健康评估",
                        "icon": "fa-stethoscope",
                        "children": [
                            {
                                "path": "/4-1",
                                "title": "中医体质辨识",
                                "linkUrl": "all-medical-list.html",
                                "children": []
                            },
                        ]
                    },
                    {
                        "path": "5",     //菜单项所对应的路由路径
                        "title": "统计分析",     //菜单项名称
                        "icon": "fa-heartbeat",
                        "children": [//是否有子菜单，若没有，则为[]
                            {
                                "path": "/5-1",
                                "title": "工作量统计",
                                "linkUrl": "all-medical-list.html",
                                "children": []
                            }
                        ]
                    }
                ]
            }
        });
        $(function () {
            var wd = 200;
            $(".el-main").css('width', $('body').width() - wd + 'px');
        });
    </script>
</html>
